#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 19-6-21 下午7:13
# @Author  : Tom
# @Site    : 
# @File    : jwt_response.py
# @Software: PyCharm


def jwt_response_payload_handler(token, user=None, request=None):
    return {
        "username": user.username,
        "id": user.id,
        "token": token
    }
